<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="style.css" rel="stylesheet" type="text/css">

{function="jquery()"}
{function="tiny_mce()"}
{function="jquery_ui('smoothness')"}
{function="html5()"}
{function="jquery_validate('th')"}

<script type="text/javascript" src = "{$url}script/jquery-popup.js"></script>

<title>ระบบประเมิน</title>

<script type="text/javascript">

$(function() {
	$(".delete").click(function() {
		if(confirm('ท่านแน่ใจที่จะลบ ใช่หรือไม่')){
			return true;
		}else{
			return false;
		}
	});

	$("form").validationEngine();
});

</script>

</head>
<body>

<div id = "wrapper">

	{if="$login==true"}
	<div id = "profile">
		<form action = "year-change.php" method="post">
			<input type = "hidden" name = "uri" value = "{$uri}">
			<span class = "year"> ปีการศึกษา
				<select name = "year">
					{loop="all_year"}
						{if="$year==$value.year"}
							<option value = "{$value.year}" selected>{$value.year}</option>
						{else}
							<option value = "{$value.year}">{$value.year}</option>
						{/if}
					{/loop}
				</select>
				<input type = "submit" value = "ตกลง">
			</span>
		</form>
		<span class = "level"><b>ตำแหน่ง</b> : {$user['level_thai_name']}</span>
		<span class = "name"><b>ชื่อ</b> : {$user['name']}</span>
	</div>
	{/if}

	<div id = "header"></div>